$OpenBSD: patch-xcolors_c,v 1.1 2017/04/22 08:37:20 jsg Exp $
--- xcolors.c.orig	Sat Apr 22 18:30:16 2017
+++ xcolors.c	Sat Apr 22 18:33:53 2017
@@ -25,6 +25,7 @@ static char*id="$XConsortium: xcolors.c,v 1.3 94/06/07
 #include <X11/Xaw/Box.h>
 #include <X11/Xaw/Label.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <math.h>		/* for sqrt() */
 
@@ -75,6 +76,9 @@ XrmOptionDescRec cmd_options[] = {
 String wm_trans =
     "<ClientMessage>WM_PROTOCOLS: quit()\n";
 
+void colordemo(Widget, char *, XColor, int);
+int l_strcasecmp(char *, char *);
+
 char *program_name;
 int n_colors_displayed = 0;	/* number of colors we are showing */
 Atom wm_delete_window;
@@ -274,6 +278,7 @@ main(argc, argv)
     /* NOTREACHED */
 }
 
+void
 colordemo(parent, startcolor, nearcolor, maxdist)
      Widget parent;
      char *startcolor;
